
<h1>Nuevo Documentos</h1>
<?php if($sf_user->hasFlash('msg')){ ?>
<div class="message">
  <?php echo $sf_user->getFlash('msg') ?>
</div>
<br />
<?php } ?>
<form action="<?php echo url_for('@documentos_new_save') ?>" method="post" id="frm" enctype="multipart/form-data" autocomplete="off">
<table width="100%" cellpadding="5" cellspacing="5">
  <tr>
    <td>T&iacute;tulo</td>
    <td colspan="2"><input type="text" name="titulo" /></td>
  </tr>
  <tr>
    <td>Autor</td>
    <td colspan="2"><input type="text" name="autor" /></td>
  </tr>
  <tr>
    <td>N&uacute;mero Orden</td>
    <td colspan="2"><input type="text" name="numero" /></td>
  </tr>

  <tr>
    <td>Fecha de publicaci&oacute;n</td>
    <td><input type="text" id="date" name="date" placeholder="25/12/2000" autocomplete="off" /></td>

  </tr>

  <tr>
    <td>Documento</td>
    <td><input type="file" name="pdf" /></td>
    <td><em style="color: gray;"></em></td>
  </tr>
 
  <tr>
    <td colspan="3" align="center">
      <input type="submit" value="Guardar Cambios"  style="padding: 10px;" />
    </td>
  </tr>
</table>
</form>
<script type="text/javascript">

function v_frm(){
    var date = $("#date").val();
    if(date==""){
        alert("Ingrese fecha");
        return false;
    }
    return true;
}

</script>